//
//  MKHomeCell.swift
//  Weibo
//
//  Created by mac on 16/1/16.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit
import SnapKit

class MKHomeCell: UITableViewCell {

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        
    }
    
    private func setupUI() {
        self.contentView.addSubview(self.topView)
        
        self.topView.snp_makeConstraints { (make) -> Void in
            make.top.left.right.equalTo(self.contentView)
        }
        
        self.contentView.snp_makeConstraints { (make) -> Void in
            make.top.left.right.equalTo(self)
            make.bottom.equalTo(self.topView.snp_bottom).offset(10)
        }

    }
    
    private lazy var topView: StatuesOriView = StatuesOriView()

}
